<?php

class ContactsDataRetriever extends URLDataRetriever {

    protected function init($args) {
        parent::init($args);
        if ($args['BASE_XML'] == "") {
            $this->addFilter('$format', $args['FORMAT']);
        }
        if (isset($args['KEYWORDS']) && strlen($args['KEYWORDS'])) {
            $this->setOption('keywords', $args['KEYWORDS']);
        }
        if (isset($args['DIRECTION']) && strlen($args['DIRECTION'])) {
            $this->setOption('direction', $args['DIRECTION']);
        }
    }
}

